﻿using System.Linq;
using SportTraining.Core.Domain;

namespace SportTraining.Core.Dal
{
    /// <summary>
    ///  базовый контракт для Dal
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IBaseDal<T>
    {
        T GetById(int id);

        void Add(T entity);

        void Delete(T entity);

        IQueryable<T> SelectAll();
    }
}
